﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace U.B.Repistory
{
    public interface IRepistory<T> where T : class
    {
        IQueryable<T> GetAll();
        int Add(T entity);
        int Update(T entity);
        int Delete(T entity);
        Task<int> UpdateAsync(T entity);
        Task<T> GetModel(int t);
        Task<IQueryable<T>> GetAllAsync();
        Task<int> DelRange(List<T> t);
        Task<int> AddRange(List<T> t);
        Task<int> AddAsync(T entity);
    }
}
